home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue47 / IntBase / frs_Ibase_const.inc next >
Encoding:
Text File  |  1999-04-16  |  73.9 KB  |  1,837 lines

  1. {**********************************
  2. * This unit contains the constant
  3. * declarations from the Interbase
  4. * Header file
  5. **********************************}
  6.  
  7. {*****************************
  8.  * Database Parameter Buffer *
  9.  *****************************}
  10.  
  11.   isc_dpb_version1            = 1;
  12.   isc_dpb_cdd_pathname        = 1;
  13.   isc_dpb_allocation          = 2;
  14.   isc_dpb_journal             = 3;
  15.   isc_dpb_page_size           = 4;
  16.   isc_dpb_num_buffers         = 5;
  17.   isc_dpb_buffer_length       = 6;
  18.   isc_dpb_debug               = 7;
  19.   isc_dpb_garbage_collect     = 8;
  20.   isc_dpb_verify              = 9;
  21.   isc_dpb_sweep               = 10;
  22.   isc_dpb_enable_journal      = 11;
  23.   isc_dpb_disable_journal     = 12;
  24.   isc_dpb_dbkey_scope         = 13;
  25.   isc_dpb_number_of_users     = 14;
  26.   isc_dpb_trace               = 15;
  27.   isc_dpb_no_garbage_collect  = 16;
  28.   isc_dpb_damaged             = 17;
  29.   isc_dpb_license             = 18;
  30.   isc_dpb_sys_user_name       = 19;
  31.   isc_dpb_encrypt_key         = 20;
  32.   isc_dpb_activate_shadow     = 21;
  33.   isc_dpb_sweep_interval      = 22;
  34.   isc_dpb_delete_shadow       = 23;
  35.   isc_dpb_force_write         = 24;
  36.   isc_dpb_begin_log           = 25;
  37.   isc_dpb_quit_log            = 26;
  38.   isc_dpb_no_reserve          = 27;
  39.   isc_dpb_user_name           = 28;
  40.   isc_dpb_password            = 29;
  41.   isc_dpb_password_enc        = 30;
  42.   isc_dpb_sys_user_name_enc   = 31;
  43.   isc_dpb_interp              = 32;
  44.   isc_dpb_online_dump         = 33;
  45.   isc_dpb_old_file_size       = 34;
  46.   isc_dpb_old_num_files       = 35;
  47.   isc_dpb_old_file            = 36;
  48.   isc_dpb_old_start_page      = 37;
  49.   isc_dpb_old_start_seqno     = 38;
  50.   isc_dpb_old_start_file      = 39;
  51.   isc_dpb_drop_walfile        = 40;
  52.   isc_dpb_old_dump_id         = 41;
  53.   isc_dpb_wal_backup_dir      = 42;
  54.   isc_dpb_wal_chkptlen        = 43;
  55.   isc_dpb_wal_numbufs         = 44;
  56.   isc_dpb_wal_bufsize         = 45;
  57.   isc_dpb_wal_grp_cmt_wait    = 46;
  58.   isc_dpb_lc_messages         = 47;
  59.   isc_dpb_lc_ctype            = 48;
  60.   isc_dpb_cache_manager          = 49;
  61.   isc_dpb_shutdown            = 50;
  62.   isc_dpb_online              = 51;
  63.   isc_dpb_shutdown_delay      = 52;
  64.   isc_dpb_reserved            = 53;
  65.   isc_dpb_overwrite           = 54;
  66.   isc_dpb_sec_attach          = 55;
  67.   isc_dpb_disable_wal         = 56;
  68.   isc_dpb_connect_timeout     = 57;
  69.   isc_dpb_dummy_packet_interval = 58;
  70.   isc_dpb_gbak_attach         = 59;
  71.   isc_dpb_sql_role_name       = 60;
  72.   isc_dpb_set_page_buffers    = 61;
  73.   isc_dpb_working_directory   = 62;
  74.  
  75.  
  76. {*********************************
  77.  * isc_dpb_verify specific flags *
  78.  *********************************}
  79.  
  80.   isc_dpb_pages               = 1;
  81.   isc_dpb_records             = 2;
  82.   isc_dpb_indices             = 4;
  83.   isc_dpb_transactions        = 8;
  84.   isc_dpb_no_update           = 16;
  85.   isc_dpb_repair              = 32;
  86.   isc_dpb_ignore              = 64;
  87.  
  88. {***********************************
  89. * isc_dpb_shutdown specific flags *
  90. ***********************************}
  91.  
  92.   isc_dpb_shut_cache          = 1;
  93.   isc_dpb_shut_attachment     = 2;
  94.   isc_dpb_shut_transaction    = 4;
  95.   isc_dpb_shut_force          = 8;
  96.  
  97. (****************************************)
  98. (** Bit assignments in RDB$SYSTEM_FLAG **)
  99. (****************************************)
  100.  
  101.   RDB_system                  = 1;
  102.   RDB_id_assigned             = 2;
  103.  
  104. {********************************
  105. * Transaction Parameter Buffer *
  106. ********************************}
  107.  
  108.   isc_tpb_version3            = 3;
  109.  
  110.   isc_tpb_consistency         = 1;
  111.   isc_tpb_concurrency         = 2;
  112.   isc_tpb_shared              = 3;
  113.   isc_tpb_protected           = 4;
  114.   isc_tpb_exclusive           = 5;
  115.   isc_tpb_wait                = 6;
  116.   isc_tpb_nowait              = 7;
  117.   isc_tpb_read                = 8;
  118.   isc_tpb_write               = 9;
  119.   isc_tpb_lock_read           = 10;
  120.   isc_tpb_lock_write          = 11;
  121.   isc_tpb_verb_time           = 12;
  122.   isc_tpb_commit_time         = 13;
  123.   isc_tpb_ignore_limbo        = 14;
  124.   isc_tpb_read_committed      = 15;
  125.   isc_tpb_autocommit            = 16;
  126.   isc_tpb_rec_version            = 17;
  127.   isc_tpb_no_rec_version      = 18;
  128.   isc_tpb_restart_requests    = 19;
  129.   isc_tpb_no_auto_undo        = 20;
  130.   isc_tpb_last_tpb_constant   = isc_tpb_no_auto_undo;
  131.  
  132. {************************
  133. {* BLOb Parameter Block *
  134. {************************}
  135.  
  136.   isc_bpb_version1            = 1;
  137.  
  138.   isc_bpb_source_type         = 1;
  139.   isc_bpb_target_type         = 2;
  140.   isc_bpb_type                = 3;
  141.   isc_bpb_source_interp       = 4;
  142.   isc_bpb_target_interp       = 5;
  143.   isc_bpb_filter_parameter    = 6;
  144.  
  145.   isc_bpb_type_segmented      = 0;
  146.   isc_bpb_type_stream         = 1;
  147.  
  148. {***************************************************
  149. {* Actions to pass to the blob filter (ctl_source) *
  150. {***************************************************}
  151.  
  152.   isc_blob_filter_open        = 0;
  153.   isc_blob_filter_get_segment = 1;
  154.   isc_blob_filter_close       = 2;
  155.   isc_blob_filter_create      = 3;
  156.   isc_blob_filter_put_segment = 4;
  157.   isc_blob_filter_alloc       = 5;
  158.   isc_blob_filter_free        = 6;
  159.   isc_blob_filter_seek        = 7;
  160.  
  161. {**************
  162. {* BLR values *
  163. {**************}
  164.  
  165.   blr_text                     = 14;
  166.   blr_text2                    = 15;
  167.   blr_short                    = 7;
  168.   blr_long                     = 8;
  169.   blr_quad                     = 9;
  170.   blr_float                    = 10;
  171.   blr_double                   = 27;
  172.   blr_d_float                  = 11;
  173.   blr_date                     = 35;
  174.   blr_varying                  = 37;
  175.   blr_varying2                 = 38;
  176.   blr_blob                     = 261;
  177.   blr_cstring                  = 40;
  178.   blr_cstring2                 = 41;
  179.   blr_blob_id                  = 45;
  180.  
  181.   blr_inner                    = 0;
  182.   blr_left                     = 1;
  183.   blr_right                    = 2;
  184.   blr_full                     = 3;
  185.  
  186.   blr_gds_code                 = 0;
  187.   blr_sql_code                 = 1;
  188.   blr_exception                = 2;
  189.   blr_trigger_code             = 3;
  190.   blr_default_code             = 4;
  191.  
  192.   blr_version4                 = 4;
  193.   blr_eoc                      = 76;
  194.   blr_end                      = -1;
  195.  
  196.   blr_assignment               = 1;
  197.   blr_begin                    = 2;
  198.   blr_dcl_variable             = 3;
  199.   blr_message                  = 4;
  200.   blr_erase                    = 5;
  201.   blr_fetch                    = 6;
  202.   blr_for                      = 7;
  203.   blr_if                       = 8;
  204.   blr_loop                     = 9;
  205.   blr_modify                   = 10;
  206.   blr_handler                  = 11;
  207.   blr_receive                  = 12;
  208.   blr_select                   = 13;
  209.   blr_send                     = 14;
  210.   blr_store                    = 15;
  211.   blr_label                    = 17;
  212.   blr_leave                    = 18;
  213.   blr_store2                   = 19;
  214.   blr_post                     = 20;
  215.   blr_literal                  = 21;
  216.   blr_dbkey                    = 22;
  217.   blr_field                    = 23;
  218.   blr_fid                      = 24;
  219.   blr_parameter                = 25;
  220.   blr_variable                 = 26;
  221.   blr_average                  = 27;
  222.   blr_count                    = 28;
  223.   blr_maximum                  = 29;
  224.   blr_minimum                  = 30;
  225.   blr_total                    = 31;
  226.   blr_add                      = 34;
  227.   blr_subtract                 = 35;
  228.   blr_multiply                 = 36;
  229.   blr_divide                   = 37;
  230.   blr_negate                   = 38;
  231.   blr_concatenate              = 39;
  232.   blr_substring                = 40;
  233.   blr_parameter2               = 41;
  234.   blr_from                     = 42;
  235.   blr_via                      = 43;
  236.   blr_user_name                = 44;
  237.   blr_null                     = 45;
  238.  
  239.   blr_eql                      = 47;
  240.   blr_neq                      = 48;
  241.   blr_gtr                      = 49;
  242.   blr_geq                      = 50;
  243.   blr_lss                      = 51;
  244.   blr_leq                      = 52;
  245.   blr_containing               = 53;
  246.   blr_matching                 = 54;
  247.   blr_starting                 = 55;
  248.   blr_between                  = 56;
  249.   blr_or                       = 57;
  250.   blr_and                      = 58;
  251.   blr_not                      = 59;
  252.   blr_any                      = 60;
  253.   blr_missing                  = 61;
  254.   blr_unique                   = 62;
  255.   blr_like                     = 63;
  256.  
  257.   blr_stream                   = 65;
  258.   blr_set_index                = 66;
  259.   blr_rse                      = 67;
  260.   blr_first                    = 68;
  261.   blr_project                  = 69;
  262.   blr_sort                     = 70;
  263.   blr_boolean                  = 71;
  264.   blr_ascending                = 72;
  265.   blr_descending               = 73;
  266.   blr_relation                 = 74;
  267.   blr_rid                      = 75;
  268.   blr_union                    = 76;
  269.   blr_map                      = 77;
  270.   blr_group_by                 = 78;
  271.   blr_aggregate                = 79;
  272.   blr_join_type                = 80;
  273.  
  274.   blr_agg_count                = 83;
  275.   blr_agg_max                  = 84;
  276.   blr_agg_min                  = 85;
  277.   blr_agg_total                = 86;
  278.   blr_agg_average              = 87;
  279.   blr_parameter3               = 88;
  280.   blr_run_count                = 118;
  281.   blr_run_max                  = 89;
  282.   blr_run_min                  = 90;
  283.   blr_run_total                = 91;
  284.   blr_run_average              = 92;
  285.   blr_agg_count2               = 93;
  286.   blr_agg_count_distinct       = 94;
  287.   blr_agg_total_distinct       = 95;
  288.   blr_agg_average_distinct     = 96;
  289.  
  290.   blr_function                 = 100;
  291.   blr_gen_id                   = 101;
  292.   blr_prot_mask                = 102;
  293.   blr_upcase                   = 103;
  294.   blr_lock_state               = 104;
  295.   blr_value_if                 = 105;
  296.   blr_matching2                = 106;
  297.   blr_index                    = 107;
  298.   blr_ansi_like                = 108;
  299.   blr_bookmark                 = 109;
  300.   blr_crack                    = 110;
  301.   blr_force_crack              = 111;
  302.   blr_seek                     = 112;
  303.   blr_find                     = 113;
  304.  
  305.   blr_forward                  = 0;
  306.   blr_backward                 = 1;
  307.   blr_bof_forward              = 2;
  308.   blr_eof_backward             = 3;
  309.   blr_forward_starting         = 4;
  310.   blr_backward_starting        = 5;
  311.  
  312.   blr_lock_relation            = 114;
  313.   blr_lock_record              = 115;
  314.   blr_set_bookmark             = 116;
  315.   blr_get_bookmark             = 117;
  316.   blr_rs_stream                = 119;
  317.   blr_exec_proc                = 120;
  318.   blr_begin_range              = 121;
  319.   blr_end_range                = 122;
  320.   blr_delete_range             = 123;
  321.   blr_procedure                = 124;
  322.   blr_pid                      = 125;
  323.   blr_exec_pid                 = 126;
  324.   blr_singular                 = 127;
  325.   blr_abort                    = 128;
  326.   blr_block                    = 129;
  327.   blr_error_handler            = 130;
  328.   blr_cast                     = 131;
  329.   blr_release_lock             = 132;
  330.   blr_release_locks            = 133;
  331.   blr_start_savepoint          = 134;
  332.   blr_end_savepoint            = 135;
  333.   blr_find_dbkey               = 136;
  334.   blr_range_relation           = 137;
  335.   blr_delete_ranges            = 138;
  336.  
  337.   blr_plan                     = 139;
  338.   blr_merge                    = 140;
  339.   blr_join                     = 141;
  340.   blr_sequential               = 142;
  341.   blr_navigational             = 143;
  342.   blr_indices                  = 144;
  343.   blr_retrieve                 = 145;
  344.  
  345.   blr_relation2                = 146;
  346.   blr_rid2                     = 147;
  347.   blr_reset_stream             = 148;
  348.   blr_release_bookmark         = 149;
  349.   blr_set_generator            = 150;
  350.   blr_ansi_any                 = 151;
  351.   blr_exists                   = 152;
  352.   blr_cardinality              = 153;
  353.   blr_record_version           = 154;        {* get tid of record *}
  354.   blr_stall                    = 155;        {* fake server stall *}
  355.   blr_seek_no_warn             = 156;
  356.   blr_find_dbkey_version       = 157;
  357.   blr_ansi_all                 = 158;
  358.  
  359. (***********************************)
  360. (** Service parameter block stuff **)
  361. (***********************************)
  362.  
  363.   isc_spb_user_name              =          1;
  364.   isc_spb_sys_user_name          =          2;
  365.   isc_spb_sys_user_name_enc      =          3;
  366.   isc_spb_password               =          4;
  367.   isc_spb_password_enc           =          5;
  368.   isc_spb_command_line           =          6;
  369.   isc_spb_dbname                 =          7;
  370.   isc_spb_verbose                =          8;
  371.   isc_spb_options                =          9;
  372.   isc_spb_connect_timeout        =          10;
  373.   isc_spb_dummy_packet_interval  =          11;
  374.   isc_spb_sql_role_name          =          12;
  375.   isc_spb_last_spb_constant      =          isc_spb_sql_role_name;
  376.  
  377.   isc_spb_version1                                = 1;
  378.   isc_spb_current_version                         = 2;
  379.   isc_spb_version                                      = isc_spb_current_version;
  380.   isc_spb_user_name_mapped_to_server              = isc_dpb_user_name;
  381.   isc_spb_sys_user_name_mapped_to_server          = isc_dpb_sys_user_name;
  382.   isc_spb_sys_user_name_enc_mapped_to_server      = isc_dpb_sys_user_name_enc;
  383.   isc_spb_password_mapped_to_server               = isc_dpb_password;
  384.   isc_spb_password_enc_mapped_to_server           = isc_dpb_password_enc;
  385.   isc_spb_command_line_mapped_to_server           = 105;
  386.   isc_spb_dbname_mapped_to_server                 = 106;
  387.   isc_spb_verbose_mapped_to_server                = 107;
  388.   isc_spb_options_mapped_to_server                = 108;
  389.   isc_spb_connect_timeout_mapped_to_server        = isc_dpb_connect_timeout;
  390.   isc_spb_dummy_packet_interval_mapped_to_server  = isc_dpb_dummy_packet_interval;
  391.   isc_spb_sql_role_name_mapped_to_server          = isc_dpb_sql_role_name;
  392.  
  393. {*********************************}
  394. {* Information call declarations *}
  395. {*********************************}
  396.  
  397. {****************************}
  398. {* Common, structural codes *}
  399. {****************************}
  400.  
  401.   isc_info_end                      = 1;
  402.   isc_info_truncated                = 2;
  403.   isc_info_error                    = 3;
  404.   isc_info_data_not_ready        = 4;
  405.   isc_info_flag_end            =127;
  406.  
  407. {******************************}
  408. {* Database information items *}
  409. {******************************}
  410.  
  411.   isc_info_db_id                   = 4;
  412.   isc_info_reads                   = 5;
  413.   isc_info_writes                  = 6;
  414.   isc_info_fetches                 = 7;
  415.   isc_info_marks                   = 8;
  416.   isc_info_implementation          = 11;
  417.   isc_info_version                 = 12;
  418.   isc_info_base_level              = 13;
  419.   isc_info_page_size               = 14;
  420.   isc_info_num_buffers             = 15;
  421.   isc_info_limbo                   = 16;
  422.   isc_info_current_memory          = 17;
  423.   isc_info_max_memory              = 18;
  424.   isc_info_window_turns            = 19;
  425.   isc_info_license                 = 20;
  426.   isc_info_allocation              = 21;
  427.   isc_info_attachment_id           = 22;
  428.   isc_info_read_seq_count          = 23;
  429.   isc_info_read_idx_count          = 24;
  430.   isc_info_insert_count            = 25;
  431.   isc_info_update_count            = 26;
  432.   isc_info_delete_count            = 27;
  433.   isc_info_backout_count           = 28;
  434.   isc_info_purge_count             = 29;
  435.   isc_info_expunge_count           = 30;
  436.   isc_info_sweep_interval          = 31;
  437.   isc_info_ods_version             = 32;
  438.   isc_info_ods_minor_version       = 33;
  439.   isc_info_no_reserve              = 34;
  440.   isc_info_logfile                 = 35;
  441.   isc_info_cur_logfile_name        = 36;
  442.   isc_info_cur_log_part_offset     = 37;
  443.   isc_info_num_wal_buffers         = 38;
  444.   isc_info_wal_buffer_size         = 39;
  445.   isc_info_wal_ckpt_length         = 40;
  446.   isc_info_wal_cur_ckpt_interval   = 41;
  447.   isc_info_wal_prv_ckpt_fname      = 42;
  448.   isc_info_wal_prv_ckpt_poffset    = 43;
  449.   isc_info_wal_recv_ckpt_fname     = 44;
  450.   isc_info_wal_recv_ckpt_poffset   = 45;
  451.   isc_info_wal_grpc_wait_usecs     = 47;
  452.   isc_info_wal_num_io              = 48;
  453.   isc_info_wal_avg_io_size         = 49;
  454.   isc_info_wal_num_commits         = 50;
  455.   isc_info_wal_avg_grpc_size       = 51;
  456.   isc_info_forced_writes           = 52;
  457.   isc_info_user_names              = 53;
  458.   isc_info_page_errors             = 54;
  459.   isc_info_record_errors           = 55;
  460.   isc_info_bpage_errors            = 56;
  461.   isc_info_dpage_errors            = 57;
  462.   isc_info_ipage_errors            = 58;
  463.   isc_info_ppage_errors            = 59;
  464.   isc_info_tpage_errors            = 60;
  465.   isc_info_set_page_buffers        = 61;
  466.   isc_info_db_SQL_dialect          = 62;
  467.   isc_info_db_read_only            = 63;
  468.   isc_info_db_size_in_pages        = 64;
  469.  
  470.  
  471. {**************************************}
  472. {* Database information return values *}
  473. {**************************************}
  474.  
  475.   isc_info_db_impl_rdb_vms         = 1;
  476.   isc_info_db_impl_rdb_eln         = 2;
  477.   isc_info_db_impl_rdb_eln_dev     = 3;
  478.   isc_info_db_impl_rdb_vms_y       = 4;
  479.   isc_info_db_impl_rdb_eln_y       = 5;
  480.   isc_info_db_impl_jri             = 6;
  481.   isc_info_db_impl_jsv             = 7;
  482.   isc_info_db_impl_isc_a           = 25;
  483.   isc_info_db_impl_isc_u           = 26;
  484.   isc_info_db_impl_isc_v           = 27;
  485.   isc_info_db_impl_isc_s           = 28;
  486.   isc_info_db_impl_isc_apl_68K     = 25;
  487.   isc_info_db_impl_isc_vax_ultr    = 26;
  488.   isc_info_db_impl_isc_vms         = 27;
  489.   isc_info_db_impl_isc_sun_68k     = 28;
  490.   isc_info_db_impl_isc_os2         = 29;
  491.   isc_info_db_impl_isc_sun4        = 30;
  492.   isc_info_db_impl_isc_hp_ux       = 31;
  493.   isc_info_db_impl_isc_sun_386i    = 32;
  494.   isc_info_db_impl_isc_vms_orcl    = 33;
  495.   isc_info_db_impl_isc_mac_aux     = 34;
  496.   isc_info_db_impl_isc_rt_aix      = 35;
  497.   isc_info_db_impl_isc_mips_ult    = 36;
  498.   isc_info_db_impl_isc_xenix       = 37;
  499.   isc_info_db_impl_isc_dg          = 38;
  500.   isc_info_db_impl_isc_hp_mpexl    = 39;
  501.   isc_info_db_impl_isc_hp_ux68K    = 40;
  502.   isc_info_db_impl_isc_sgi         = 41;
  503.   isc_info_db_impl_isc_sco_unix    = 42;
  504.   isc_info_db_impl_isc_cray        = 43;
  505.   isc_info_db_impl_isc_imp         = 44;
  506.   isc_info_db_impl_isc_delta       = 45;
  507.   isc_info_db_impl_isc_next        = 46;
  508.   isc_info_db_impl_isc_dos         = 47;
  509.   isc_info_db_impl_isc_winnt       = 48;
  510.   isc_info_db_impl_isc_epson       = 49;
  511.  
  512.   isc_info_db_class_access         = 1;
  513.   isc_info_db_class_y_valve        = 2;
  514.   isc_info_db_class_rem_int        = 3;
  515.   isc_info_db_class_rem_srvr       = 4;
  516.   isc_info_db_class_pipe_int       = 7;
  517.   isc_info_db_class_pipe_srvr      = 8;
  518.   isc_info_db_class_sam_int        = 9;
  519.   isc_info_db_class_sam_srvr       = 10;
  520.   isc_info_db_class_gateway        = 11;
  521.   isc_info_db_class_cache          = 12;
  522.  
  523. {*****************************}
  524. {* Request information items *}
  525. {*****************************}
  526.  
  527.   isc_info_number_messages         = 4;
  528.   isc_info_max_message             = 5;
  529.   isc_info_max_send                = 6;
  530.   isc_info_max_receive             = 7;
  531.   isc_info_state                   = 8;
  532.   isc_info_message_number          = 9;
  533.   isc_info_message_size            = 10;
  534.   isc_info_request_cost            = 11;
  535.   isc_info_access_path             = 12;
  536.   isc_info_req_select_count        = 13;
  537.   isc_info_req_insert_count        = 14;
  538.   isc_info_req_update_count        = 15;
  539.   isc_info_req_delete_count        = 16;
  540.  
  541. {*********************}
  542. {* Access path items *}
  543. {*********************}
  544.  
  545.   isc_info_rsb_end          = 0;
  546.   isc_info_rsb_begin        = 1;
  547.   isc_info_rsb_type         = 2;
  548.   isc_info_rsb_relation     = 3;
  549.   isc_info_rsb_plan         = 4;
  550.  
  551. {*************}
  552. {* Rsb types *}
  553. {*************}
  554.  
  555.   isc_info_rsb_unknown                = 1;
  556.   isc_info_rsb_indexed        = 2;
  557.   isc_info_rsb_navigate       = 3;
  558.   isc_info_rsb_sequential     = 4;
  559.   isc_info_rsb_cross          = 5;
  560.   isc_info_rsb_sort           = 6;
  561.   isc_info_rsb_first          = 7;
  562.   isc_info_rsb_boolean        = 8;
  563.   isc_info_rsb_union          = 9;
  564.   isc_info_rsb_aggregate      = 10;
  565.   isc_info_rsb_merge          = 11;
  566.   isc_info_rsb_ext_sequential = 12;
  567.   isc_info_rsb_ext_indexed    = 13;
  568.   isc_info_rsb_ext_dbkey      = 14;
  569.   isc_info_rsb_left_cross     = 15;
  570.   isc_info_rsb_select         = 16;
  571.   isc_info_rsb_sql_join          = 17;
  572.   isc_info_rsb_simulate          = 18;
  573.   isc_info_rsb_sim_cross      = 19;
  574.   isc_info_rsb_once           = 20;
  575.   isc_info_rsb_procedure      = 21;
  576.  
  577. {**********************}
  578. {* Bitmap expressions *}
  579. {**********************}
  580.  
  581.   isc_info_rsb_and       = 1;
  582.   isc_info_rsb_or        = 2;
  583.   isc_info_rsb_dbkey     = 3;
  584.   isc_info_rsb_index     = 4;
  585.  
  586.   isc_info_req_active              = 2;
  587.   isc_info_req_inactive            = 3;
  588.   isc_info_req_send                = 4;
  589.   isc_info_req_receive             = 5;
  590.   isc_info_req_select              = 6;
  591.   isc_info_req_sql_stall           = 7;
  592.  
  593. {**************************}
  594. {* Blob information items *}
  595. {**************************}
  596.  
  597.   isc_info_blob_num_segments       = 4;
  598.   isc_info_blob_max_segment        = 5;
  599.   isc_info_blob_total_length       = 6;
  600.   isc_info_blob_type               = 7;
  601.  
  602. {*********************************}
  603. {* Transaction information items *}
  604. {*********************************}
  605.  
  606.   isc_info_tra_id                  = 4;
  607.  
  608. {*****************************}
  609. {* Service information items *}
  610. {*****************************}
  611.  
  612.   isc_info_svc_version             = 4;
  613.   isc_info_svc_message             = 5;
  614.   isc_info_svc_total_length        = 6;
  615.   isc_info_svc_response            = 7;
  616.   isc_info_svc_response_more       = 8;
  617.   isc_info_svc_line                = 9;
  618.   isc_info_svc_to_eof              = 10;
  619.   isc_info_svc_timeout             = 11;
  620.   isc_info_svc_server_version      = 12;
  621.   isc_info_svc_implementation      = 13;
  622.   isc_info_svc_capabilities        = 14;
  623.   isc_info_svc_user_dbpath         = 15;
  624.   isc_info_svc_svr_db_info         = 16;
  625.   isc_info_svc_svr_online          = 17;
  626.   isc_info_svc_svr_offline         = 18;
  627.   isc_info_svc_get_config          = 19;
  628.   isc_info_svc_set_config          = 20;
  629.   isc_info_svc_default_config      = 21;
  630.  
  631. (*****************************************)
  632. (* Service action items                 **)
  633. (*****************************************)
  634.  
  635.   isc_action_svc_backup         = 1; (* Starts database backup process on the server *)
  636.   isc_action_svc_restore        = 2; (* Starts database restore process on the server *)
  637.   isc_action_svc_repair         = 3; (* Starts database repair process on the server *)
  638.   isc_action_svc_add_user       = 4; (* Adds a new user to the security database *)
  639.   isc_action_svc_delete_user    = 5; (* Deletes a user record from the security database *)
  640.   isc_action_svc_modify_user    = 6; (* Modifies a user record in the security database *)
  641.   isc_action_svc_display_user   = 7; (* Displays a user record from the security database *)
  642.   isc_action_svc_properties     = 8; (* Sets database properties *)
  643.   isc_action_svc_add_license    = 9; (* Adds a license to the license file *)
  644.   isc_action_svc_remove_license = 10; (* Removes a license from the license file *)
  645.   isc_action_svc_db_stats          = 11; (* Retrieves database statistics *)
  646.   isc_action_svc_get_ib_log     = 12; (* Retrieves the InterBase log file from the server *)
  647.  
  648. (*****************************************)
  649. (** Service information items           **)
  650. (*****************************************)
  651. {$ifdef VERSION6.0}
  652.   isc_info_svc_svr_db_info      = 50; (* Retrieves the number of attachments and databases *)
  653.   isc_info_svc_get_license      = 51; (* Retrieves all license keys and IDs from the license file *)
  654.   isc_info_svc_get_license_mask = 52; (* Retrieves a bitmask representing licensed options on the server *)
  655.   isc_info_svc_get_config       = 53; (* Retrieves the parameters and values for IB_CONFIG *)
  656.   isc_info_svc_version          = 54; (* Retrieves the version of the services manager *)
  657.   isc_info_svc_server_version   = 55; (* Retrieves the version of the InterBase server *)
  658.   isc_info_svc_implementation   = 56; (* Retrieves the implementation of the InterBase server *)
  659.   isc_info_svc_capabilities     = 57; (* Retrieves a bitmask representing the server's capabilities *)
  660.   isc_info_svc_user_dbpath      = 58; (* Retrieves the path to the security database in use by the server *)
  661.   isc_info_svc_get_env            = 59; (* Retrieves the setting of $INTERBASE *)
  662.   isc_info_svc_get_env_lock     = 60; (* Retrieves the setting of $INTERBASE_LCK *)
  663.   isc_info_svc_get_env_msg      = 61; (* Retrieves the setting of $INTERBASE_MSG *)
  664.   isc_info_svc_line             = 62; (* Retrieves 1 line of service output per call *)
  665.   isc_info_svc_to_eof           = 63; (* Retrieves as much of the server output as will fit in the supplied buffer *)
  666.   isc_info_svc_timeout          = 64; (* Sets / signifies a timeout value for reading service information *)
  667.   isc_info_svc_get_licensed_users = 65; (* Retrieves the number of users licensed for accessing the server *)
  668.   isc_info_svc_limbo_trans        = 66; (* Retrieve the limbo transactions *)
  669.   isc_info_svc_running              = 67; (* Checks to see if a service is running on an attachment *)
  670.   isc_info_svc_get_users          = 68; (* Returns the user information from isc_action_svc_display_users *)
  671. {$endif}
  672. (*****************************************)
  673. (* Parameters for isc_action_svc_(add|remove)_license, *)
  674. (* isc_info_svc_get_license                            *)
  675. (*****************************************)
  676.  
  677.   isc_spb_lic_key               = 5;
  678.   isc_spb_lic_id                = 6;
  679.  
  680. (*****************************************)
  681. (* Parameters for isc_action_svc_backup  *)
  682. (*****************************************)
  683.  
  684.   isc_spb_bkp_file               = 5;
  685.   isc_spb_bkp_factor             = 6;
  686.   isc_spb_bkp_length             = 7;
  687.   isc_spb_bkp_ignore_checksums   = $01;
  688.   isc_spb_bkp_ignore_limbo       = $02;
  689.   isc_spb_bkp_metadata_only      = $04;
  690.   isc_spb_bkp_no_garbage_collect = $08;
  691.   isc_spb_bkp_old_descriptions   = $10;
  692.   isc_spb_bkp_non_transportable  = $20;
  693.   isc_spb_bkp_convert            = $40;
  694.  
  695. (*****************************************)
  696. (* Parameters for isc_action_svc_lock_stats *)
  697. (*****************************************)
  698.  
  699.   isc_spb_lck_sample          = 5;
  700.   isc_spb_lck_secs          = 6;
  701.   isc_spb_lck_contents          = $01;
  702.   isc_spb_lck_summary          = $02;
  703.   isc_spb_lck_wait          = $04;
  704.   isc_spb_lck_stats          = $08;
  705.  
  706. (*****************************************)
  707. (* Parameters for isc_action_svc_properties *)
  708. (*****************************************)
  709.  
  710.   isc_spb_prp_page_buffers          = 5;
  711.   isc_spb_prp_sweep_interval          = 6;
  712.   isc_spb_prp_shutdown_db          =    7;
  713.   isc_spb_prp_deny_new_attachments    = 9;
  714.   isc_spb_prp_deny_new_transactions   = 10;
  715.   isc_spb_prp_reserve_space          = 11;
  716.   isc_spb_prp_write_mode          =    12;
  717.   isc_spb_prp_access_mode          =    13;
  718.   isc_spb_prp_set_sql_dialect          = 14;
  719.   isc_spb_prp_activate              = $0100;
  720.   isc_spb_prp_db_online              = $0200;
  721.  
  722. (*****************************************)
  723. (* Parameters for isc_spb_prp_reserve_space *)
  724. (*****************************************)
  725.  
  726.   isc_spb_prp_res_use_full          = 35;
  727.   isc_spb_prp_res              =    36;
  728.  
  729. (*****************************************)
  730. (* Parameters for isc_spb_prp_write_mode *)
  731. (*****************************************)
  732.  
  733.   isc_spb_prp_wm_async        = 37;
  734.   isc_spb_prp_wm_sync        = 38;
  735.  
  736. (*****************************************)
  737. (* Parameters for isc_spb_prp_access_mode *)
  738. (*****************************************)
  739.  
  740.   isc_spb_prp_am_readonly    = 39;
  741.   isc_spb_prp_am_readwrite    = 40;
  742.  
  743. (*****************************************)
  744. (* Parameters for isc_action_svc_repair  *)
  745. (*****************************************)
  746.  
  747.   isc_spb_rpr_commit_trans           = 15;
  748.   isc_spb_rpr_rollback_trans           = 34;
  749.   isc_spb_rpr_recover_two_phase           = 17;
  750.   isc_spb_tra_id                       = 18;
  751.   isc_spb_single_tra_id               = 19;
  752.   isc_spb_multi_tra_id               = 20;
  753.   isc_spb_tra_state               = 21;
  754.   isc_spb_tra_state_limbo           = 22;
  755.   isc_spb_tra_state_commit           = 23;
  756.   isc_spb_tra_state_rollback           = 24;
  757.   isc_spb_tra_state_unknown           = 25;
  758.   isc_spb_tra_host_site               = 26;
  759.   isc_spb_tra_remote_site           = 27;
  760.   isc_spb_tra_db_path               = 28;
  761.   isc_spb_tra_advise               = 29;
  762.   isc_spb_tra_advise_commit           = 30;
  763.   isc_spb_tra_advise_rollback           = 31;
  764.   isc_spb_tra_advise_unknown           = 33;
  765.   isc_spb_rpr_list_limbo_trans           = $01;
  766.   isc_spb_rpr_check_db               = $02;
  767.   isc_spb_rpr_ignore_checksum           = $04;
  768.   isc_spb_rpr_kill_shadows           = $08;
  769.   isc_spb_rpr_mend_db               = $10;
  770.   isc_spb_rpr_sweep_db               = $20;
  771.   isc_spb_rpr_validate_db           = $40;
  772.   isc_spb_rpr_full               = $80;
  773.  
  774. (*****************************************)
  775. (* Parameters for isc_action_svc_restore  *)
  776. (*****************************************)
  777.  
  778.   isc_spb_res_buffers               = 9;
  779.   isc_spb_res_page_size               = 10;
  780.   isc_spb_res_length               = 11;
  781.   isc_spb_res_access_mode           = 12;
  782.   isc_spb_res_deactivate_idx           = $0100;
  783.   isc_spb_res_no_shadow               = $0200;
  784.   isc_spb_res_no_validity           = $0400;
  785.   isc_spb_res_one_ata_time           = $0800;
  786.   isc_spb_res_replace               = $1000;
  787.   isc_spb_res_create               = $2000;
  788.   isc_spb_res_use_all_space           = $4000;
  789.  
  790. (*****************************************)
  791. (* Parameters for isc_spb_res_access_mode  *)
  792. (*****************************************)
  793.  
  794.   isc_spb_res_am_readonly        = isc_spb_prp_am_readonly;
  795.   isc_spb_res_am_readwrite        = isc_spb_prp_am_readwrite;
  796.  
  797. (*****************************************)
  798. (* Parameters for isc_info_svc_svr_db_info *)
  799. (*****************************************)
  800.  
  801.   isc_spb_num_att               = 5;
  802.   isc_spb_num_db                = 6;
  803.  
  804. (*****************************************)
  805. (* Parameters for isc_info_svc_db_stats  *)
  806. (*****************************************)
  807.  
  808.   isc_spb_sts_data_pages    = $01;
  809.   isc_spb_sts_db_log        = $02;
  810.   isc_spb_sts_hdr_pages        = $04;
  811.   isc_spb_sts_idx_pages        = $08;
  812.   isc_spb_sts_sys_relations    = $10;
  813.  
  814. {*************************}
  815. {* SQL information items *}
  816. {*************************}
  817.  
  818.   isc_info_sql_select              = 4;
  819.   isc_info_sql_bind                = 5;
  820.   isc_info_sql_num_variables       = 6;
  821.   isc_info_sql_describe_vars       = 7;
  822.   isc_info_sql_describe_end        = 8;
  823.   isc_info_sql_sqlda_seq           = 9;
  824.   isc_info_sql_message_seq         = 10;
  825.   isc_info_sql_type                = 11;
  826.   isc_info_sql_sub_type            = 12;
  827.   isc_info_sql_scale               = 13;
  828.   isc_info_sql_length              = 14;
  829.   isc_info_sql_null_ind            = 15;
  830.   isc_info_sql_field               = 16;
  831.   isc_info_sql_relation            = 17;
  832.   isc_info_sql_owner               = 18;
  833.   isc_info_sql_alias               = 19;
  834.   isc_info_sql_sqlda_start         = 20;
  835.   isc_info_sql_stmt_type           = 21;
  836.   isc_info_sql_get_plan            = 22;
  837.   isc_info_sql_records             = 23;
  838.   isc_info_sql_batch_fetch         = 24;
  839.  
  840. {*********************************}
  841. {* SQL information return values *}
  842. {*********************************}
  843.  
  844.   isc_info_sql_stmt_select         = 1;
  845.   isc_info_sql_stmt_insert         = 2;
  846.   isc_info_sql_stmt_update         = 3;
  847.   isc_info_sql_stmt_delete         = 4;
  848.   isc_info_sql_stmt_ddl            = 5;
  849.   isc_info_sql_stmt_get_segment    = 6;
  850.   isc_info_sql_stmt_put_segment    = 7;
  851.   isc_info_sql_stmt_exec_procedure = 8;
  852.   isc_info_sql_stmt_start_trans    = 9;
  853.   isc_info_sql_stmt_commit         = 10;
  854.   isc_info_sql_stmt_rollback       = 11;
  855.   isc_info_sql_stmt_select_for_upd = 12;
  856.   isc_info_sql_stmt_set_generator  = 13;
  857.  
  858. {***********************************}
  859. {* Server configuration key values *}
  860. {***********************************}
  861.  
  862.   ISCCFG_LOCKMEM_KEY      = 0;
  863.   ISCCFG_LOCKSEM_KEY      = 1;
  864.   ISCCFG_LOCKSIG_KEY      = 2;
  865.   ISCCFG_EVNTMEM_KEY      = 3;
  866.   ISCCFG_DBCACHE_KEY      = 4;
  867.   ISCCFG_PRIORITY_KEY     = 5;
  868.   ISCCFG_IPCMAP_KEY       = 6;
  869.   ISCCFG_MEMMIN_KEY       = 7;
  870.   ISCCFG_MEMMAX_KEY       = 8;
  871.   ISCCFG_LOCKORDER_KEY    = 9;
  872.   ISCCFG_ANYLOCKMEM_KEY   = 10;
  873.   ISCCFG_ANYLOCKSEM_KEY   = 11;
  874.   ISCCFG_ANYLOCKSIG_KEY   = 12;
  875.   ISCCFG_ANYEVNTMEM_KEY   = 13;
  876.   ISCCFG_LOCKHASH_KEY        = 14;
  877.   ISCCFG_DEADLOCK_KEY        = 15;
  878.   ISCCFG_LOCKSPIN_KEY        = 16;
  879.   ISCCFG_CONN_TIMEOUT_KEY = 17;
  880.   ISCCFG_DUMMY_INTRVL_KEY = 18;
  881.  
  882.  
  883. {***************}
  884. {* Error codes *}
  885. {***************}
  886.  
  887.   isc_facility                      = 20;
  888.   isc_arg_end                       = 0;
  889.   isc_arg_gds                       = 1;
  890.   isc_arg_string                    = 2;
  891.   isc_arg_cstring                   = 3;
  892.   isc_arg_number                    = 4;
  893.   isc_arg_interpreted               = 5;
  894.   isc_arg_vms                       = 6;
  895.   isc_arg_unix                      = 7;
  896.   isc_arg_domain                    = 8;
  897.   isc_arg_dos                       = 9;
  898.   isc_arg_mpexl                     = 10;
  899.   isc_arg_mpexl_ipc                 = 11;
  900.   isc_arg_next_mach                 = 15;
  901.   isc_arg_netware                      = 16;
  902.   isc_arg_win32                     = 17;
  903.  
  904.   isc_err_factor                    = 1;
  905.   isc_err_base                      = 335544320;
  906. //  isc_err_max                          = 438;
  907.   isc_err_max                       = 469;
  908.  
  909.   isc_arith_except                       = 335544321;
  910.   isc_bad_dbkey                          = 335544322;
  911.   isc_bad_db_format                      = 335544323;
  912.   isc_bad_db_handle                      = 335544324;
  913.   isc_bad_dpb_content                    = 335544325;
  914.   isc_bad_dpb_form                       = 335544326;
  915.   isc_bad_req_handle                     = 335544327;
  916.   isc_bad_segstr_handle                  = 335544328;
  917.   isc_bad_segstr_id                      = 335544329;
  918.   isc_bad_tpb_content                    = 335544330;
  919.   isc_bad_tpb_form                       = 335544331;
  920.   isc_bad_trans_handle                   = 335544332;
  921.   isc_bug_check                          = 335544333;
  922.   isc_convert_error                      = 335544334;
  923.   isc_db_corrupt                         = 335544335;
  924.   isc_deadlock                           = 335544336;
  925.   isc_excess_trans                       = 335544337;
  926.   isc_from_no_match                      = 335544338;
  927.   isc_infinap                            = 335544339;
  928.   isc_infona                             = 335544340;
  929.   isc_infunk                             = 335544341;
  930.   isc_integ_fail                         = 335544342;
  931.   isc_invalid_blr                        = 335544343;
  932.   isc_io_error                           = 335544344;
  933.   isc_lock_conflict                      = 335544345;
  934.   isc_metadata_corrupt                   = 335544346;
  935.   isc_not_valid                          = 335544347;
  936.   isc_no_cur_rec                         = 335544348;
  937.   isc_no_dup                             = 335544349;
  938.   isc_no_finish                          = 335544350;
  939.   isc_no_meta_update                     = 335544351;
  940.   isc_no_priv                            = 335544352;
  941.   isc_no_recon                           = 335544353;
  942.   isc_no_record                          = 335544354;
  943.   isc_no_segstr_close                    = 335544355;
  944.   isc_obsolete_metadata                  = 335544356;
  945.   isc_open_trans                         = 335544357;
  946.   isc_port_len                           = 335544358;
  947.   isc_read_only_field                    = 335544359;
  948.   isc_read_only_rel                      = 335544360;
  949.   isc_read_only_trans                    = 335544361;
  950.   isc_read_only_view                     = 335544362;
  951.   isc_req_no_trans                       = 335544363;
  952.   isc_req_sync                           = 335544364;
  953.   isc_req_wrong_db                       = 335544365;
  954.   isc_segment                            = 335544366;
  955.   isc_segstr_eof                         = 335544367;
  956.   isc_segstr_no_op                       = 335544368;
  957.   isc_segstr_no_read                     = 335544369;
  958.   isc_segstr_no_trans                    = 335544370;
  959.   isc_segstr_no_write                    = 335544371;
  960.   isc_segstr_wrong_db                    = 335544372;
  961.   isc_sys_request                        = 335544373;
  962.   isc_stream_eof                         = 335544374;
  963.   isc_unavailable                        = 335544375;
  964.   isc_unres_rel                          = 335544376;
  965.   isc_uns_ext                            = 335544377;
  966.   isc_wish_list                          = 335544378;
  967.   isc_wrong_ods                          = 335544379;
  968.   isc_wronumarg                          = 335544380;
  969.   isc_imp_exc                            = 335544381;
  970.   isc_random                             = 335544382;
  971.   isc_fatal_conflict                     = 335544383;
  972.   isc_badblk                             = 335544384;
  973.   isc_invpoolcl                          = 335544385;
  974.   isc_nopoolids                          = 335544386;
  975.   isc_relbadblk                          = 335544387;
  976.   isc_blktoobig                          = 335544388;
  977.   isc_bufexh                             = 335544389;
  978.   isc_syntaxerr                          = 335544390;
  979.   isc_bufinuse                           = 335544391;
  980.   isc_bdbincon                           = 335544392;
  981.   isc_reqinuse                           = 335544393;
  982.   isc_badodsver                          = 335544394;
  983.   isc_relnotdef                          = 335544395;
  984.   isc_fldnotdef                          = 335544396;
  985.   isc_dirtypage                          = 335544397;
  986.   isc_waifortra                          = 335544398;
  987.   isc_doubleloc                          = 335544399;
  988.   isc_nodnotfnd                          = 335544400;
  989.   isc_dupnodfnd                          = 335544401;
  990.   isc_locnotmar                          = 335544402;
  991.   isc_badpagtyp                          = 335544403;
  992.   isc_corrupt                            = 335544404;
  993.   isc_badpage                            = 335544405;
  994.   isc_badindex                           = 335544406;
  995.   isc_dbbnotzer                          = 335544407;
  996.   isc_tranotzer                          = 335544408;
  997.   isc_trareqmis                          = 335544409;
  998.   isc_badhndcnt                          = 335544410;
  999.   isc_wrotpbver                          = 335544411;
  1000.   isc_wroblrver                          = 335544412;
  1001.   isc_wrodpbver                          = 335544413;
  1002.   isc_blobnotsup                         = 335544414;
  1003.   isc_badrelation                        = 335544415;
  1004.   isc_nodetach                           = 335544416;
  1005.   isc_notremote                          = 335544417;
  1006.   isc_trainlim                           = 335544418;
  1007.   isc_notinlim                           = 335544419;
  1008.   isc_traoutsta                          = 335544420;
  1009.   isc_connect_reject                     = 335544421;
  1010.   isc_dbfile                             = 335544422;
  1011.   isc_orphan                             = 335544423;
  1012.   isc_no_lock_mgr                        = 335544424;
  1013.   isc_ctxinuse                           = 335544425;
  1014.   isc_ctxnotdef                          = 335544426;
  1015.   isc_datnotsup                          = 335544427;
  1016.   isc_badmsgnum                          = 335544428;
  1017.   isc_badparnum                          = 335544429;
  1018.   isc_virmemexh                          = 335544430;
  1019.   isc_blocking_signal                    = 335544431;
  1020.   isc_lockmanerr                         = 335544432;
  1021.   isc_journerr                           = 335544433;
  1022.   isc_keytoobig                          = 335544434;
  1023.   isc_nullsegkey                         = 335544435;
  1024.   isc_sqlerr                             = 335544436;
  1025.   isc_wrodynver                          = 335544437;
  1026.   isc_funnotdef                          = 335544438;
  1027.   isc_funmismat                          = 335544439;
  1028.   isc_bad_msg_vec                        = 335544440;
  1029.   isc_bad_detach                         = 335544441;
  1030.   isc_noargacc_read                      = 335544442;
  1031.   isc_noargacc_write                     = 335544443;
  1032.   isc_read_only                          = 335544444;
  1033.   isc_ext_err                            = 335544445;
  1034.   isc_non_updatable                      = 335544446;
  1035.   isc_no_rollback                        = 335544447;
  1036.   isc_bad_sec_info                       = 335544448;
  1037.   isc_invalid_sec_info                   = 335544449;
  1038.   isc_misc_interpreted                   = 335544450;
  1039.   isc_update_conflict                    = 335544451;
  1040.   isc_unlicensed                         = 335544452;
  1041.   isc_obj_in_use                         = 335544453;
  1042.   isc_nofilter                           = 335544454;
  1043.   isc_shadow_accessed                    = 335544455;
  1044.   isc_invalid_sdl                        = 335544456;
  1045.   isc_out_of_bounds                      = 335544457;
  1046.   isc_invalid_dimension                  = 335544458;
  1047.   isc_rec_in_limbo                       = 335544459;
  1048.   isc_shadow_missing                     = 335544460;
  1049.   isc_cant_validate                      = 335544461;
  1050.   isc_cant_start_journal                 = 335544462;
  1051.   isc_gennotdef                          = 335544463;
  1052.   isc_cant_start_logging                 = 335544464;
  1053.   isc_bad_segstr_type                    = 335544465;
  1054.   isc_foreign_key                        = 335544466;
  1055.   isc_high_minor                         = 335544467;
  1056.   isc_tra_state                          = 335544468;
  1057.   isc_trans_invalid                      = 335544469;
  1058.   isc_buf_invalid                        = 335544470;
  1059.   isc_indexnotdefined                    = 335544471;
  1060.   isc_login                              = 335544472;
  1061.   isc_invalid_bookmark                   = 335544473;
  1062.   isc_bad_lock_level                     = 335544474;
  1063.   isc_relation_lock                      = 335544475;
  1064.   isc_record_lock                        = 335544476;
  1065.   isc_max_idx                            = 335544477;
  1066.   isc_jrn_enable                         = 335544478;
  1067.   isc_old_failure                        = 335544479;
  1068.   isc_old_in_progress                    = 335544480;
  1069.   isc_old_no_space                       = 335544481;
  1070.   isc_no_wal_no_jrn                      = 335544482;
  1071.   isc_num_old_files                      = 335544483;
  1072.   isc_wal_file_open                      = 335544484;
  1073.   isc_bad_stmt_handle                    = 335544485;
  1074.   isc_wal_failure                        = 335544486;
  1075.   isc_walw_err                           = 335544487;
  1076.   isc_logh_small                         = 335544488;
  1077.   isc_logh_inv_version                   = 335544489;
  1078.   isc_logh_open_flag                     = 335544490;
  1079.   isc_logh_open_flag2                    = 335544491;
  1080.   isc_logh_diff_dbname                   = 335544492;
  1081.   isc_logf_unexpected_eof                = 335544493;
  1082.   isc_logr_incomplete                    = 335544494;
  1083.   isc_logr_header_small                  = 335544495;
  1084.   isc_logb_small                         = 335544496;
  1085.   isc_wal_illegal_attach                 = 335544497;
  1086.   isc_wal_invalid_wpb                    = 335544498;
  1087.   isc_wal_err_rollover                   = 335544499;
  1088.   isc_no_wal                             = 335544500;
  1089.   isc_drop_wal                           = 335544501;
  1090.   isc_stream_not_defined                 = 335544502;
  1091.   isc_wal_subsys_error                   = 335544503;
  1092.   isc_wal_subsys_corrupt                 = 335544504;
  1093.   isc_no_archive                         = 335544505;
  1094.   isc_shutinprog                         = 335544506;
  1095.   isc_range_in_use                       = 335544507;
  1096.   isc_range_not_found                    = 335544508;
  1097.   isc_charset_not_found                  = 335544509;
  1098.   isc_lock_timeout                       = 335544510;
  1099.   isc_prcnotdef                          = 335544511;
  1100.   isc_prcmismat                          = 335544512;
  1101.   isc_wal_bugcheck                       = 335544513;
  1102.   isc_wal_cant_expand                    = 335544514;
  1103.   isc_codnotdef                          = 335544515;
  1104.   isc_xcpnotdef                          = 335544516;
  1105.   isc_except                             = 335544517;
  1106.   isc_cache_restart                      = 335544518;
  1107.   isc_bad_lock_handle                    = 335544519;
  1108.   isc_jrn_present                        = 335544520;
  1109.   isc_wal_err_rollover2                  = 335544521;
  1110.   isc_wal_err_logwrite                   = 335544522;
  1111.   isc_wal_err_jrn_comm                   = 335544523;
  1112.   isc_wal_err_expansion                  = 335544524;
  1113.   isc_wal_err_setup                      = 335544525;
  1114.   isc_wal_err_ww_sync                    = 335544526;
  1115.   isc_wal_err_ww_start                   = 335544527;
  1116.   isc_shutdown                           = 335544528;
  1117.   isc_existing_priv_mod                  = 335544529;
  1118.   isc_primary_key_ref                    = 335544530;
  1119.   isc_primary_key_notnull                = 335544531;
  1120.   isc_ref_cnstrnt_notfound               = 335544532;
  1121.   isc_foreign_key_notfound               = 335544533;
  1122.   isc_ref_cnstrnt_update                 = 335544534;
  1123.   isc_check_cnstrnt_update               = 335544535;
  1124.   isc_check_cnstrnt_del                  = 335544536;
  1125.   isc_integ_index_seg_del                = 335544537;
  1126.   isc_integ_index_seg_mod                = 335544538;
  1127.   isc_integ_index_del                    = 335544539;
  1128.   isc_integ_index_mod                    = 335544540;
  1129.   isc_check_trig_del                     = 335544541;
  1130.   isc_check_trig_update                  = 335544542;
  1131.   isc_cnstrnt_fld_del                    = 335544543;
  1132.   isc_cnstrnt_fld_rename                 = 335544544;
  1133.   isc_rel_cnstrnt_update                 = 335544545;
  1134.   isc_constaint_on_view                  = 335544546;
  1135.   isc_invld_cnstrnt_type                 = 335544547;
  1136.   isc_primary_key_exists                 = 335544548;
  1137.   isc_systrig_update                     = 335544549;
  1138.   isc_not_rel_owner                      = 335544550;
  1139.   isc_grant_obj_notfound                 = 335544551;
  1140.   isc_grant_fld_notfound                 = 335544552;
  1141.   isc_grant_nopriv                       = 335544553;
  1142.   isc_nonsql_security_rel                = 335544554;
  1143.   isc_nonsql_security_fld                = 335544555;
  1144.   isc_wal_cache_err                      = 335544556;
  1145.   isc_shutfail                           = 335544557;
  1146.   isc_check_constraint                   = 335544558;
  1147.   isc_bad_svc_handle                     = 335544559;
  1148.   isc_shutwarn                           = 335544560;
  1149.   isc_wrospbver                          = 335544561;
  1150.   isc_bad_spb_form                       = 335544562;
  1151.   isc_svcnotdef                          = 335544563;
  1152.   isc_no_jrn                             = 335544564;
  1153.   isc_transliteration_failed             = 335544565;
  1154.   isc_start_cm_for_wal                   = 335544566;
  1155.   isc_wal_ovflow_log_required            = 335544567;
  1156.   isc_text_subtype                       = 335544568;
  1157.   isc_dsql_error                         = 335544569;
  1158.   isc_dsql_command_err                   = 335544570;
  1159.   isc_dsql_constant_err                  = 335544571;
  1160.   isc_dsql_cursor_err                    = 335544572;
  1161.   isc_dsql_datatype_err                  = 335544573;
  1162.   isc_dsql_decl_err                      = 335544574;
  1163.   isc_dsql_cursor_update_err             = 335544575;
  1164.   isc_dsql_cursor_open_err               = 335544576;
  1165.   isc_dsql_cursor_close_err              = 335544577;
  1166.   isc_dsql_field_err                     = 335544578;
  1167.   isc_dsql_internal_err                  = 335544579;
  1168.   isc_dsql_relation_err                  = 335544580;
  1169.   isc_dsql_procedure_err                 = 335544581;
  1170.   isc_dsql_request_err                   = 335544582;
  1171.   isc_dsql_sqlda_err                     = 335544583;
  1172.   isc_dsql_var_count_err                 = 335544584;
  1173.   isc_dsql_stmt_handle                   = 335544585;
  1174.   isc_dsql_function_err                  = 335544586;
  1175.   isc_dsql_blob_err                      = 335544587;
  1176.   isc_collation_not_found                = 335544588;
  1177.   isc_collation_not_for_charset          = 335544589;
  1178.   isc_dsql_dup_option                    = 335544590;
  1179.   isc_dsql_tran_err                      = 335544591;
  1180.   isc_dsql_invalid_array                 = 335544592;
  1181.   isc_dsql_max_arr_dim_exceeded          = 335544593;
  1182.   isc_dsql_arr_range_error               = 335544594;
  1183.   isc_dsql_trigger_err                   = 335544595;
  1184.   isc_dsql_subselect_err                 = 335544596;
  1185.   isc_dsql_crdb_prepare_err              = 335544597;
  1186.   isc_specify_field_err                  = 335544598;
  1187.   isc_num_field_err                      = 335544599;
  1188.   isc_col_name_err                       = 335544600;
  1189.   isc_where_err                          = 335544601;
  1190.   isc_table_view_err                     = 335544602;
  1191.   isc_distinct_err                       = 335544603;
  1192.   isc_key_field_count_err                = 335544604;
  1193.   isc_subquery_err                       = 335544605;
  1194.   isc_expression_eval_err                = 335544606;
  1195.   isc_node_err                           = 335544607;
  1196.   isc_command_end_err                    = 335544608;
  1197.   isc_index_name                         = 335544609;
  1198.   isc_exception_name                     = 335544610;
  1199.   isc_field_name                         = 335544611;
  1200.   isc_token_err                          = 335544612;
  1201.   isc_union_err                          = 335544613;
  1202.   isc_dsql_construct_err                 = 335544614;
  1203.   isc_field_aggregate_err                = 335544615;
  1204.   isc_field_ref_err                      = 335544616;
  1205.   isc_order_by_err                       = 335544617;
  1206.   isc_return_mode_err                    = 335544618;
  1207.   isc_extern_func_err                    = 335544619;
  1208.   isc_alias_conflict_err                 = 335544620;
  1209.   isc_procedure_conflict_error           = 335544621;
  1210.   isc_relation_conflict_err              = 335544622;
  1211.   isc_dsql_domain_err                    = 335544623;
  1212.   isc_idx_seg_err                        = 335544624;
  1213.   isc_node_name_err                      = 335544625;
  1214.   isc_table_name                         = 335544626;
  1215.   isc_proc_name                          = 335544627;
  1216.   isc_idx_create_err                     = 335544628;
  1217.   isc_wal_shadow_err                     = 335544629;
  1218.   isc_dependency                         = 335544630;
  1219.   isc_idx_key_err                        = 335544631;
  1220.   isc_dsql_file_length_err               = 335544632;
  1221.   isc_dsql_shadow_number_err             = 335544633;
  1222.   isc_dsql_token_unk_err                 = 335544634;
  1223.   isc_dsql_no_relation_alias             = 335544635;
  1224.   isc_indexname                          = 335544636;
  1225.   isc_no_stream_plan                     = 335544637;
  1226.   isc_stream_twice                       = 335544638;
  1227.   isc_stream_not_found                   = 335544639;
  1228.   isc_collation_requires_text            = 335544640;
  1229.   isc_dsql_domain_not_found              = 335544641;
  1230.   isc_index_unused                       = 335544642;
  1231.   isc_dsql_self_join                     = 335544643;
  1232.   isc_stream_bof                         = 335544644;
  1233.   isc_stream_crack                       = 335544645;
  1234.   isc_db_or_file_exists                  = 335544646;
  1235.   isc_invalid_operator                   = 335544647;
  1236.   isc_conn_lost                          = 335544648;
  1237.   isc_bad_checksum                       = 335544649;
  1238.   isc_page_type_err                      = 335544650;
  1239.   isc_ext_readonly_err                   = 335544651;
  1240.   isc_sing_select_err                    = 335544652;
  1241.   isc_psw_attach                         = 335544653;
  1242.   isc_psw_start_trans                    = 335544654;
  1243.   isc_invalid_direction                  = 335544655;
  1244.   isc_dsql_var_conflict                  = 335544656;
  1245.   isc_dsql_no_blob_array                 = 335544657;
  1246.   isc_dsql_base_table                    = 335544658;
  1247.   isc_duplicate_base_table               = 335544659;
  1248.   isc_view_alias                         = 335544660;
  1249.   isc_index_root_page_full               = 335544661;
  1250.   isc_dsql_blob_type_unknown             = 335544662;
  1251.   isc_req_max_clones_exceeded            = 335544663;
  1252.   isc_dsql_duplicate_spec                = 335544664;
  1253.   isc_unique_key_violation               = 335544665;
  1254.   isc_srvr_version_too_old               = 335544666;
  1255.   isc_drdb_completed_with_errs           = 335544667;
  1256.   isc_dsql_procedure_use_err             = 335544668;
  1257.   isc_dsql_count_mismatch                = 335544669;
  1258.   isc_blob_idx_err                       = 335544670;
  1259.   isc_array_idx_err                      = 335544671;
  1260.   isc_key_field_err                      = 335544672;
  1261.   isc_no_delete                          = 335544673;
  1262.   isc_del_last_field                     = 335544674;
  1263.   isc_sort_err                           = 335544675;
  1264.   isc_sort_mem_err                       = 335544676;
  1265.   isc_version_err                        = 335544677;
  1266.   isc_inval_key_posn                     = 335544678;
  1267.   isc_no_segments_err                    = 335544679;
  1268.   isc_crrp_data_err                      = 335544680;
  1269.   isc_rec_size_err                       = 335544681;
  1270.   isc_dsql_field_ref                     = 335544682;
  1271.   isc_req_depth_exceeded                 = 335544683;
  1272.   isc_no_field_access                    = 335544684;
  1273.   isc_no_dbkey                           = 335544685;
  1274.   isc_jrn_format_err                     = 335544686;
  1275.   isc_jrn_file_full                      = 335544687;
  1276.   isc_dsql_open_cursor_request           = 335544688;
  1277.   isc_ib_error                           = 335544689;
  1278.   isc_cache_redef                        = 335544690;
  1279.   isc_cache_too_small                    = 335544691;
  1280.   isc_log_redef                          = 335544692;
  1281.   isc_log_too_small                      = 335544693;
  1282.   isc_partition_too_small                = 335544694;
  1283.   isc_partition_not_supp                 = 335544695;
  1284.   isc_log_length_spec                    = 335544696;
  1285.   isc_precision_err                      = 335544697;
  1286.   isc_scale_nogt                         = 335544698;
  1287.   isc_expec_short                        = 335544699;
  1288.   isc_expec_long                         = 335544700;
  1289.   isc_expec_ushort                       = 335544701;
  1290.   isc_like_escape_invalid                = 335544702;
  1291.   isc_svcnoexe                           = 335544703;
  1292.   isc_net_lookup_err                     = 335544704;
  1293.   isc_service_unknown                    = 335544705;
  1294.   isc_host_unknown                       = 335544706;
  1295.   isc_grant_nopriv_on_base               = 335544707;
  1296.   isc_dyn_fld_ambiguous                  = 335544708;
  1297.   isc_dsql_agg_ref_err                   = 335544709;
  1298.   isc_complex_view                       = 335544710;
  1299.   isc_unprepared_stmt                    = 335544711;
  1300.   isc_expec_positive                     = 335544712;
  1301.   isc_dsql_sqlda_value_err               = 335544713;
  1302.   isc_invalid_array_id                   = 335544714;
  1303.   isc_extfile_uns_op                     = 335544715;
  1304.   isc_svc_in_use                         = 335544716;
  1305.   isc_err_stack_limit                    = 335544717;
  1306.   isc_invalid_key                        = 335544718;
  1307.   isc_net_init_error                     = 335544719;
  1308.   isc_loadlib_failure                    = 335544720;
  1309.   isc_network_error                      = 335544721;
  1310.   isc_net_connect_err                    = 335544722;
  1311.   isc_net_connect_listen_err             = 335544723;
  1312.   isc_net_event_connect_err              = 335544724;
  1313.   isc_net_event_listen_err               = 335544725;
  1314.   isc_net_read_err                       = 335544726;
  1315.   isc_net_write_err                      = 335544727;
  1316.   isc_integ_index_deactivate             = 335544728;
  1317.   isc_integ_deactivate_primary           = 335544729;
  1318.   isc_cse_not_supported                  = 335544730;
  1319.   isc_tra_must_sweep                     = 335544731;
  1320.   isc_unsupported_network_drive          = 335544732;
  1321.   isc_io_create_err                      = 335544733;
  1322.   isc_io_open_err                        = 335544734;
  1323.   isc_io_close_err                       = 335544735;
  1324.   isc_io_read_err                        = 335544736;
  1325.   isc_io_write_err                       = 335544737;
  1326.   isc_io_delete_err                      = 335544738;
  1327.   isc_io_access_err                      = 335544739;
  1328.   isc_udf_exception                      = 335544740;
  1329.   isc_lost_db_connection                 = 335544741;
  1330.   isc_no_write_user_priv                 = 335544742;
  1331.   isc_token_too_long                     = 335544743;
  1332.   isc_max_att_exceeded                   = 335544744;
  1333.   isc_login_same_as_role_name            = 335544745;
  1334.   isc_reftable_requires_pk               = 335544746;
  1335.   isc_usrname_too_long                   = 335544747;
  1336.   isc_password_too_long                  = 335544748;
  1337.   isc_usrname_required                   = 335544749;
  1338.   isc_password_required                  = 335544750;
  1339.   isc_bad_protocol                       = 335544751;
  1340.   isc_dup_usrname_found                  = 335544752;
  1341.   isc_usrname_not_found                  = 335544753;
  1342.   isc_error_adding_sec_record            = 335544754;
  1343.   isc_error_modifying_sec_record         = 335544755;
  1344.   isc_error_deleting_sec_record          = 335544756;
  1345.   isc_error_updating_sec_db              = 335544757;
  1346.   isc_sort_rec_size_err                  = 335544758;
  1347.   isc_bad_default_value                  = 335544759;
  1348.   isc_invalid_clause                     = 335544760;
  1349.   isc_too_many_handles                   = 335544761;
  1350.   isc_optimizer_blk_exc                  = 335544762;
  1351.   isc_invalid_string_constant            = 335544763;
  1352.   isc_transitional_date                  = 335544764;
  1353.   isc_read_only_database                 = 335544765;
  1354.   isc_must_be_dialect_2_and_up           = 335544766;
  1355.   isc_blob_filter_exception              = 335544767;
  1356.   isc_exception_access_violation         = 335544768;
  1357.   isc_exception_datatype_missalignment   = 335544769;
  1358.   isc_exception_array_bounds_exceeded    = 335544770;
  1359.   isc_exception_float_denormal_operand   = 335544771;
  1360.   isc_exception_float_divide_by_zero     = 335544772;
  1361.   isc_exception_float_inexact_result     = 335544773;
  1362.   isc_exception_float_invalid_operand    = 335544774;
  1363.   isc_exception_float_overflow           = 335544775;
  1364.   isc_exception_float_stack_check        = 335544776;
  1365.   isc_exception_float_underflow          = 335544777;
  1366.   isc_exception_integer_divide_by_zero   = 335544778;
  1367.   isc_exception_integer_overflow         = 335544779;
  1368.   isc_exception_unknown                  = 335544780;
  1369.   isc_exception_stack_overflow           = 335544781;
  1370.   isc_exception_sigsegv                  = 335544782;
  1371.   isc_exception_sigill                   = 335544783;
  1372.   isc_exception_sigbus                   = 335544784;
  1373.   isc_exception_sigfpe                   = 335544785;
  1374.   isc_ext_file_delete                    = 335544786;
  1375.   isc_ext_file_modify                    = 335544787;
  1376.   isc_gbak_not_owner                     = 335544788;
  1377.   isc_extract_input_mismatch             = 335544789;
  1378.  
  1379.  
  1380.  
  1381. {**********************************************}
  1382. {* Dynamic Data Definition Language operators *}
  1383. {**********************************************}
  1384.  
  1385. {******************}
  1386. {* Version number *}
  1387. {******************}
  1388.  
  1389.   isc_dyn_version_1                = 1;
  1390.   isc_dyn_eoc                      = -1;
  1391.  
  1392. {******************************}
  1393. {* Operations (may be nested) *}
  1394. {******************************}
  1395.  
  1396.   isc_dyn_begin                    = 2;
  1397.   isc_dyn_end                      = 3;
  1398.   isc_dyn_if                       = 4;
  1399.   isc_dyn_def_database             = 5;
  1400.   isc_dyn_def_global_fld           = 6;
  1401.   isc_dyn_def_local_fld            = 7;
  1402.   isc_dyn_def_idx                  = 8;
  1403.   isc_dyn_def_rel                  = 9;
  1404.   isc_dyn_def_sql_fld              = 10;
  1405.   isc_dyn_def_view                 = 12;
  1406.   isc_dyn_def_trigger              = 15;
  1407.   isc_dyn_def_security_class       = 120;
  1408.   isc_dyn_def_dimension            = 140;
  1409.   isc_dyn_def_generator            = 24;
  1410.   isc_dyn_def_function             = 25;
  1411.   isc_dyn_def_filter               = 26;
  1412.   isc_dyn_def_function_arg         = 27;
  1413.   isc_dyn_def_shadow               = 34;
  1414.   isc_dyn_def_trigger_msg          = 17;
  1415.   isc_dyn_def_file                 = 36;
  1416.   isc_dyn_mod_database             = 39;
  1417.   isc_dyn_mod_rel                  = 11;
  1418.   isc_dyn_mod_global_fld           = 13;
  1419.   isc_dyn_mod_idx                  = 102;
  1420.   isc_dyn_mod_local_fld            = 14;
  1421.   isc_dyn_mod_view                 = 16;
  1422.   isc_dyn_mod_security_class       = 122;
  1423.   isc_dyn_mod_trigger              = 113;
  1424.   isc_dyn_mod_trigger_msg          = 28;
  1425.   isc_dyn_delete_database          = 18;
  1426.   isc_dyn_delete_rel               = 19;
  1427.   isc_dyn_delete_global_fld        = 20;
  1428.   isc_dyn_delete_local_fld         = 21;
  1429.   isc_dyn_delete_idx               = 22;
  1430.   isc_dyn_delete_security_class    = 123;
  1431.   isc_dyn_delete_dimensions        = 143;
  1432.   isc_dyn_delete_trigger           = 23;
  1433.   isc_dyn_delete_trigger_msg       = 29;
  1434.   isc_dyn_delete_filter            = 32;
  1435.   isc_dyn_delete_function          = 33;
  1436.   isc_dyn_delete_shadow            = 35;
  1437.   isc_dyn_grant                    = 30;
  1438.   isc_dyn_revoke                   = 31;
  1439.   isc_dyn_def_primary_key          = 37;
  1440.   isc_dyn_def_foreign_key          = 38;
  1441.   isc_dyn_def_unique               = 40;
  1442.   isc_dyn_def_procedure            = 164;
  1443.   isc_dyn_delete_procedure         = 165;
  1444.   isc_dyn_def_parameter            = 135;
  1445.   isc_dyn_delete_parameter         = 136;
  1446.   isc_dyn_mod_procedure            = 175;
  1447.   isc_dyn_def_log_file             = 176;
  1448.   isc_dyn_def_cache_file           = 180;
  1449.   isc_dyn_def_exception            = 181;
  1450.   isc_dyn_mod_exception            = 182;
  1451.   isc_dyn_del_exception            = 183;
  1452.   isc_dyn_drop_log                 = 194;
  1453.   isc_dyn_drop_cache               = 195;
  1454.   isc_dyn_def_default_log          = 202;
  1455.  
  1456. {***********************}
  1457. {* View specific stuff *}
  1458. {***********************}
  1459.  
  1460.   isc_dyn_view_blr                 = 43;
  1461.   isc_dyn_view_source              = 44;
  1462.   isc_dyn_view_relation            = 45;
  1463.   isc_dyn_view_context             = 46;
  1464.   isc_dyn_view_context_name        = 47;
  1465.  
  1466. {**********************}
  1467. {* Generic attributes *}
  1468. {**********************}
  1469.  
  1470.   isc_dyn_rel_name                 = 50;
  1471.   isc_dyn_fld_name                 = 51;
  1472.   isc_dyn_idx_name                 = 52;
  1473.   isc_dyn_description              = 53;
  1474.   isc_dyn_security_class           = 54;
  1475.   isc_dyn_system_flag              = 55;
  1476.   isc_dyn_update_flag              = 56;
  1477.   isc_dyn_prc_name                 = 166;
  1478.   isc_dyn_prm_name                 = 137;
  1479.   isc_dyn_sql_object               = 196;
  1480.   isc_dyn_fld_character_set_name   = 174;
  1481.  
  1482. {********************************
  1483. * Relation specific attributes *
  1484. ********************************}
  1485.  
  1486.   isc_dyn_rel_dbkey_length         = 61;
  1487.   isc_dyn_rel_store_trig           = 62;
  1488.   isc_dyn_rel_modify_trig          = 63;
  1489.   isc_dyn_rel_erase_trig           = 64;
  1490.   isc_dyn_rel_store_trig_source    = 65;
  1491.   isc_dyn_rel_modify_trig_source   = 66;
  1492.   isc_dyn_rel_erase_trig_source    = 67;
  1493.   isc_dyn_rel_ext_file             = 68;
  1494.   isc_dyn_rel_sql_protection       = 69;
  1495.   isc_dyn_rel_constraint           = 162;
  1496.   isc_dyn_delete_rel_constraint    = 163;
  1497.  
  1498. {************************************}
  1499. {* Global field specific attributes *}
  1500. {************************************}
  1501.  
  1502.   isc_dyn_fld_type                 = 70;
  1503.   isc_dyn_fld_length               = 71;
  1504.   isc_dyn_fld_scale                = 72;
  1505.   isc_dyn_fld_sub_type             = 73;
  1506.   isc_dyn_fld_segment_length       = 74;
  1507.   isc_dyn_fld_query_header         = 75;
  1508.   isc_dyn_fld_edit_string          = 76;
  1509.   isc_dyn_fld_validation_blr       = 77;
  1510.   isc_dyn_fld_validation_source    = 78;
  1511.   isc_dyn_fld_computed_blr         = 79;
  1512.   isc_dyn_fld_computed_source      = 80;
  1513.   isc_dyn_fld_missing_value        = 81;
  1514.   isc_dyn_fld_default_value        = 82;
  1515.   isc_dyn_fld_query_name           = 83;
  1516.   isc_dyn_fld_dimensions           = 84;
  1517.   isc_dyn_fld_not_null             = 85;
  1518.   isc_dyn_fld_char_length          = 172;
  1519.   isc_dyn_fld_collation            = 173;
  1520.   isc_dyn_fld_default_source       = 193;
  1521.   isc_dyn_del_default              = 197;
  1522.   isc_dyn_del_validation           = 198;
  1523.   isc_dyn_single_validation        = 199;
  1524.   isc_dyn_fld_character_set        = 203;
  1525.  
  1526. {***********************************}
  1527. {* Local field specific attributes *}
  1528. {***********************************}
  1529.  
  1530.   isc_dyn_fld_source               = 90;
  1531.   isc_dyn_fld_base_fld             = 91;
  1532.   isc_dyn_fld_position             = 92;
  1533.   isc_dyn_fld_update_flag          = 93;
  1534.  
  1535. {*****************************}
  1536. {* Index specific attributes *}
  1537. {*****************************}
  1538.  
  1539.   isc_dyn_idx_unique               = 100;
  1540.   isc_dyn_idx_inactive             = 101;
  1541.   isc_dyn_idx_type                 = 103;
  1542.   isc_dyn_idx_foreign_key          = 104;
  1543.   isc_dyn_idx_ref_column           = 105;
  1544.   isc_dyn_idx_statistic            = 204;
  1545.  
  1546. {*******************************}
  1547. {* Trigger specific attributes *}
  1548. {*******************************}
  1549.  
  1550.   isc_dyn_trg_type                 = 110;
  1551.   isc_dyn_trg_blr                  = 111;
  1552.   isc_dyn_trg_source               = 112;
  1553.   isc_dyn_trg_name                 = 114;
  1554.   isc_dyn_trg_sequence             = 115;
  1555.   isc_dyn_trg_inactive             = 116;
  1556.   isc_dyn_trg_msg_number           = 117;
  1557.   isc_dyn_trg_msg                  = 118;
  1558.  
  1559. {**************************************}
  1560. {* Security Class specific attributes *}
  1561. {**************************************}
  1562.  
  1563.   isc_dyn_scl_acl                  = 121;
  1564.   isc_dyn_grant_user               = 130;
  1565.   isc_dyn_grant_proc               = 186;
  1566.   isc_dyn_grant_trig               = 187;
  1567.   isc_dyn_grant_view               = 188;
  1568.   isc_dyn_grant_options            = 132;
  1569.  
  1570.  
  1571. {**********************************}
  1572. {* Dimension specific information *}
  1573. {**********************************}
  1574.  
  1575.   isc_dyn_dim_lower                = 141;
  1576.   isc_dyn_dim_upper                = 142;
  1577.  
  1578. {****************************}
  1579. {* File specific attributes *}
  1580. {****************************}
  1581.  
  1582.   isc_dyn_file_name                = 125;
  1583.   isc_dyn_file_start               = 126;
  1584.   isc_dyn_file_length              = 127;
  1585.   isc_dyn_shadow_number            = 128;
  1586.   isc_dyn_shadow_man_auto          = 129;
  1587.   isc_dyn_shadow_conditional       = 130;
  1588.  
  1589. {********************************
  1590. * Log file specific attributes *
  1591. ********************************}
  1592.  
  1593.   isc_dyn_log_file_sequence        = 177;
  1594.   isc_dyn_log_file_partitions      = 178;
  1595.   isc_dyn_log_file_serial          = 179;
  1596.   isc_dyn_log_file_overflow        = 200;
  1597.   isc_dyn_log_file_raw             = 201;
  1598.  
  1599. {***************************}
  1600. {* Log specific attributes *}
  1601. {***************************}
  1602.  
  1603.   isc_dyn_log_group_commit_wait    = 189;
  1604.   isc_dyn_log_buffer_size          = 190;
  1605.   isc_dyn_log_check_point_length   = 191;
  1606.   isc_dyn_log_num_of_buffers       = 192;
  1607.  
  1608. {********************************
  1609. * Function specific attributes *
  1610. ********************************}
  1611.  
  1612.   isc_dyn_function_name            = 145;
  1613.   isc_dyn_function_type            = 146;
  1614.   isc_dyn_func_module_name         = 147;
  1615.   isc_dyn_func_entry_point         = 148;
  1616.   isc_dyn_func_return_argument     = 149;
  1617.   isc_dyn_func_arg_position        = 150;
  1618.   isc_dyn_func_mechanism           = 151;
  1619.   isc_dyn_filter_in_subtype        = 152;
  1620.   isc_dyn_filter_out_subtype       = 153;
  1621.  
  1622.  
  1623.   isc_dyn_description2             = 154;
  1624.   isc_dyn_fld_computed_source2     = 155;
  1625.   isc_dyn_fld_edit_string2         = 156;
  1626.   isc_dyn_fld_query_header2        = 157;
  1627.   isc_dyn_fld_validation_source2   = 158;
  1628.   isc_dyn_trg_msg2                 = 159;
  1629.   isc_dyn_trg_source2              = 160;
  1630.   isc_dyn_view_source2             = 161;
  1631.   isc_dyn_xcp_msg2                 = 184;
  1632.  
  1633. {*********************************}
  1634. {* Generator specific attributes *}
  1635. {*********************************}
  1636.  
  1637.   isc_dyn_generator_name           = 95;
  1638.   isc_dyn_generator_id             = 96;
  1639.  
  1640. {*********************************}
  1641. {* Procedure specific attributes *}
  1642. {*********************************}
  1643.  
  1644.   isc_dyn_prc_inputs               = 167;
  1645.   isc_dyn_prc_outputs              = 168;
  1646.   isc_dyn_prc_source               = 169;
  1647.   isc_dyn_prc_blr                  = 170;
  1648.   isc_dyn_prc_source2              = 171;
  1649.  
  1650. {*********************************}
  1651. {* Parameter specific attributes *}
  1652. {*********************************}
  1653.  
  1654.   isc_dyn_prm_number               = 138;
  1655.   isc_dyn_prm_type                 = 139;
  1656.  
  1657. {********************************
  1658. * Relation specific attributes *
  1659. ********************************}
  1660.  
  1661.   isc_dyn_xcp_msg                  = 185;
  1662.  
  1663. {**********************************************}
  1664. {* Cascading referential integrity values     *}
  1665. {**********************************************}
  1666.   isc_dyn_foreign_key_update       = 205;
  1667.   isc_dyn_foreign_key_delete       = 206;
  1668.   isc_dyn_foreign_key_cascade      = 207;
  1669.   isc_dyn_foreign_key_default      = 208;
  1670.   isc_dyn_foreign_key_null         = 209;
  1671.   isc_dyn_foreign_key_none         = 210;
  1672.  
  1673. {***********************}
  1674. {* SQL role values     *}
  1675. {***********************}
  1676.   isc_dyn_def_sql_role             = 211;
  1677.   isc_dyn_sql_role_name            = 212;
  1678.   isc_dyn_grant_admin_options      = 213;
  1679.   isc_dyn_del_sql_role             = 214;
  1680.  
  1681.  
  1682. {****************************}
  1683. {* Last $dyn value assigned *}
  1684. {****************************}
  1685.  
  1686.   isc_dyn_last_dyn_value           = 214;
  1687.  
  1688. {******************************************}
  1689. {* Array slice description language (SDL) *}
  1690. {******************************************}
  1691.  
  1692.   isc_sdl_version1                 = 1;
  1693.   isc_sdl_eoc                      = -1;
  1694.   isc_sdl_relation                 = 2;
  1695.   isc_sdl_rid                      = 3;
  1696.   isc_sdl_field                    = 4;
  1697.   isc_sdl_fid                      = 5;
  1698.   isc_sdl_struct                   = 6;
  1699.   isc_sdl_variable                 = 7;
  1700.   isc_sdl_scalar                   = 8;
  1701.   isc_sdl_tiny_integer             = 9;
  1702.   isc_sdl_short_integer            = 10;
  1703.   isc_sdl_long_integer             = 11;
  1704.   isc_sdl_literal                  = 12;
  1705.   isc_sdl_add                      = 13;
  1706.   isc_sdl_subtract                 = 14;
  1707.   isc_sdl_multiply                 = 15;
  1708.   isc_sdl_divide                   = 16;
  1709.   isc_sdl_negate                   = 17;
  1710.   isc_sdl_eql                      = 18;
  1711.   isc_sdl_neq                      = 19;
  1712.   isc_sdl_gtr                      = 20;
  1713.   isc_sdl_geq                      = 21;
  1714.   isc_sdl_lss                      = 22;
  1715.   isc_sdl_leq                      = 23;
  1716.   isc_sdl_and                      = 24;
  1717.   isc_sdl_or                       = 25;
  1718.   isc_sdl_not                      = 26;
  1719.   isc_sdl_while                    = 27;
  1720.   isc_sdl_assignment               = 28;
  1721.   isc_sdl_label                    = 29;
  1722.   isc_sdl_leave                    = 30;
  1723.   isc_sdl_begin                    = 31;
  1724.   isc_sdl_end                      = 32;
  1725.   isc_sdl_do3                      = 33;
  1726.   isc_sdl_do2                      = 34;
  1727.   isc_sdl_do1                      = 35;
  1728.   isc_sdl_element                  = 36;
  1729.  
  1730. {********************************************}
  1731. {* International text interpretation values *}
  1732. {********************************************}
  1733.  
  1734.   isc_interp_eng_ascii             = 0;
  1735.   isc_interp_jpn_sjis              = 5;
  1736.   isc_interp_jpn_euc               = 6;
  1737.  
  1738. {****************************************}
  1739. {* Scroll direction for isc_dsql_fetch2 *}
  1740. {****************************************}
  1741.  
  1742.   isc_fetch_next             = 0;
  1743.   isc_fetch_prior            = 1;
  1744.   isc_fetch_first            = 2;
  1745.   isc_fetch_last             = 3;
  1746.   isc_fetch_absolute         = 4;
  1747.   isc_fetch_relative         = 5;
  1748.  
  1749. {*******************}
  1750. {* SQL definitions *}
  1751. {*******************}
  1752.  
  1753.   SQLDA_VERSION1                    = 1;
  1754.  
  1755.   SQL_TEXT                          = 452;
  1756.   SQL_VARYING                       = 448;
  1757.   SQL_SHORT                         = 500;
  1758.   SQL_LONG                          = 496;
  1759.   SQL_FLOAT                         = 482;
  1760.   SQL_DOUBLE                        = 480;
  1761.   SQL_D_FLOAT                       = 530;
  1762.   SQL_DATE                          = 510;
  1763.   SQL_BLOB                          = 520;
  1764.   SQL_ARRAY                         = 540;
  1765.   SQL_QUAD                          = 550;
  1766.  
  1767.   SQL_NULL                          = 1; {* Added to the above if NULLable *}
  1768.  
  1769. {*****************}
  1770. {* Blob Subtypes *}
  1771. {*****************}
  1772.  
  1773. {* Types less than zero are reserved for customer use *}
  1774.  
  1775.   isc_blob_untyped                  = 0;
  1776.  
  1777. {* Internal subtypes *}
  1778.  
  1779.   isc_blob_text                     = 1;
  1780.   isc_blob_blr                      = 2;
  1781.   isc_blob_acl                      = 3;
  1782.   isc_blob_ranges                   = 4;
  1783.   isc_blob_summary                  = 5;
  1784.   isc_blob_format                   = 6;
  1785.   isc_blob_tra                      = 7;
  1786.   isc_blob_extfile                  = 8;
  1787.  
  1788. {* The range 20-30 is reserved for dBASE and Paradox types *}
  1789.  
  1790.   isc_blob_formatted_memo           = 20;
  1791.   isc_blob_paradox_ole              = 21;
  1792.   isc_blob_graphic                  = 22;
  1793.   isc_blob_dbase_ole                = 23;
  1794.   isc_blob_typed_binary             = 24;
  1795.  
  1796. const
  1797.   {User security stuff}
  1798.   sec_uid_spec            = $1;
  1799.   sec_gid_spec            = $2;
  1800.   sec_server_spec         = $4;
  1801.   sec_password_spec       = $8;
  1802.   sec_group_name_spec     = $10;
  1803.   sec_first_name_spec     = $20;
  1804.   sec_middle_name_spec    = $40;
  1805.   sec_last_name_spec      = $80;
  1806.   sec_dba_user_name_spec  = $100;
  1807.   sec_dba_password_spec   = $200;
  1808.  
  1809.   sec_protocol_tcpip      = 1;
  1810.   sec_protocol_netbeui    = 2;
  1811.   sec_protocol_spx        = 3;
  1812.   sec_protocol_local      = 4;
  1813.  
  1814.   type
  1815.   USER_SEC_DATA = record
  1816.     sec_flags:      smallint;       //  which fields are specified
  1817.     uid:            integer;        //  the user's id
  1818.     gid:            integer;        //  the user's group id
  1819.     protocol:       integer;        //  protocol to use for connection
  1820.     server:         pointer;        //  server to administer
  1821.     user_name:      pointer;        //  the user's name */
  1822.     password:       pointer;        //  the user's password */
  1823.     group_name:     pointer;        //  the group name */
  1824.     first_name:     pointer;        //  the user's first name */
  1825.     middle_name:    pointer;        //  the user's middle name */
  1826.     last_name:      pointer;        //  the user's last name */
  1827.     dba_user_name:  pointer;        //  the dba user name */
  1828.     dba_password:   pointer;        //  the dba password */
  1829.   end;
  1830.  
  1831.   PUSER_SEC_DATA = ^USER_SEC_DATA;
  1832.  
  1833. (*********************************END OF IBASE CONSTANTS **************************************)
  1834.  
  1835.  
  1836.   
  1837.